
# 创建类
class Student:
    name = None

s = Student()

# print(s.name)

class Clock:
    id = None
    price = None

    def ring(self):
        import  winsound
        winsound.Beep(2000, 3000)

c1 = Clock()
c1.id = '123'
c1.price = 100
print(f'闹钟id:{c1.id}， price:{c1.price}')
c1.ring()
